package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryMember;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import com.itheima.pojo.User;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);
    
    void addMember(Map map) throws ParseException;

    List<Integer> findMemberCountByMonths(List<String> months);

    Result findByAge();


    PageResult pageQuery(QueryPageBean queryPageBean);

    User findById(Integer id);

    List<User> findAllUser();

    void edit(Map map) throws ParseException;

    void add(Member member);

    String delete(Integer[] ids);

    Result deleteById(Integer id);

    void editMember(Member member);


    Result findSetmealByIdAndDate(String telephone, Map<String, String> orderInfo) throws Exception;

    QueryMember findMemberById(Integer id,Integer oid);
}
